package fr.uniscol.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class Academie implements Serializable {

	private long id = 0;
	
	private String code = null;
	
	private String nom = null;
	
	private List<Departement> departements = null;
	
	private List<EtablissementModel> etablissements = null;
	
	public Academie(){
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getNom() {
		return nom;
	}

	public void setNom(String nom) {
		this.nom = nom;
	}

	public List<Departement> getDepartements() {
		if(departements == null){
			departements = new ArrayList<Departement>();
		}
		return departements;
	}

	public void setDepartements(List<Departement> departements) {
		this.departements = departements;
	}

	public List<EtablissementModel> getEtablissements() {
		if(etablissements == null){
			etablissements = new ArrayList<EtablissementModel>();
		}
		return etablissements;
	}

	public void setEtablissements(List<EtablissementModel> etablissements) {
		this.etablissements = etablissements;
	}
}
